<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Goods extends Model
{
	protected $table = 'goods';    
	protected $primaryKey = 'goods_id';
	
	
	public function getspec(){
		return $this->hasMany('App\Models\SpecGoodsPrice');
	}
	
	
	
	
	public function getGoodsContentAttribute($value){
		if($value){
			return $value;
		}
		return "";
	}	

}
